package com.qf.exam01.utils;

import lombok.*;

/**
 * IP地址
 * 例如：192.168.10.120
 * partA=192
 * partB=168
 * partC=10
 * partD=120
 * 取值范围：0-255
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class IP {
    private Integer partA;
    private Integer partB;
    private Integer partC;
    private Integer partD;

    @Override
    public String toString() {
        return partA+"."+partB+"."+partC+"."+partD;
    }
}
